package name.luojun.DBhelper.ORM.entity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.LinkedHashMap;
/**
 * A relational table
 * 
 * @author Gavin King
 */
@SuppressWarnings("rawtypes")
public class Table {
	private Class clazz;
	private String name;
	private String schema;
	private String catalog;
	private Map<String, Column> columns = new LinkedHashMap<String, Column>();
	private PrimaryKey primaryKey;
	private Map<String, String[]> indexes = new HashMap<String, String[]>();
	private Map<String, ForeignKey> foreignKeys = new HashMap<String, ForeignKey>();
	private Map<String, UniqueKey> uniqueKeys = new HashMap<String, UniqueKey>();
	private List checkConstraints = new ArrayList();
	private String comment;
	public Map<String, Column> getColumns() {
		return columns;
	}
	public void setColumns(Map<String, Column> columns) {
		this.columns = columns;
	}
	public Map<String, ForeignKey> getForeignKeys() {
		return foreignKeys;
	}
	public void setForeignKeys(Map<String, ForeignKey> foreignKeys) {
		this.foreignKeys = foreignKeys;
	}
	public Map<String, UniqueKey> getUniqueKeys() {
		return uniqueKeys;
	}
	public void setUniqueKeys(Map<String, UniqueKey> uniqueKeys) {
		this.uniqueKeys = uniqueKeys;
	}
	public Class getClazz() {
		return clazz;
	}
	public void setClazz(Class clazz) {
		this.clazz = clazz;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSchema() {
		return schema;
	}
	public void setSchema(String schema) {
		this.schema = schema;
	}
	public String getCatalog() {
		return catalog;
	}
	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}
	public PrimaryKey getPrimaryKey() {
		return primaryKey;
	}
	public void setPrimaryKey(PrimaryKey primaryKey) {
		this.primaryKey = primaryKey;
	}
	public Map<String, String[]> getIndexes() {
		return indexes;
	}
	public void setIndexes(Map<String, String[]> indexes) {
		this.indexes = indexes;
	}
	public List getCheckConstraints() {
		return checkConstraints;
	}
	public void setCheckConstraints(List checkConstraints) {
		this.checkConstraints = checkConstraints;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
}